package org.example.springtest.repository;
import org.example.springtest.model.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends JpaRepository<User, Integer> {

    // 根据登录账号和密码查询用户
    User findByLoginAccountAndLoginPassword(String loginAccount, String loginPassword);

}
